package com.llxz.blog.ucenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.llxz.blog.ucenter.entity.Provice;
import com.llxz.blog.ucenter.entity.User;
import com.llxz.blog.ucenter.entity.vo.ChangePasswordForm;
import com.llxz.blog.ucenter.entity.vo.RegisterForm;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author lyq
 * @description: 用户服务接口
 * date: 2021/9/4 15:19
 */
public interface UserService extends IService<User> {
    //登录
    String login(User user);

    //注册
    void register(RegisterForm registerForm);

    //修改密码
    void changePassword(ChangePasswordForm changePasswordForm);

    //逻辑删除用户
    void delete(String mobile,String password);

    //统计。某一天的注册人数
    Integer countRegisterDay(String day);

    int countTotalRegister();

    int countOnlineNum();

    void subUserStatus(User user);

    List<Provice> getIpAdressNum();

}
